<template>
  <el-menu mode="horizontal" router default-active="/">
    <el-menu-item index="/">设置</el-menu-item>
    <el-menu-item index="/cargo1">货架1</el-menu-item>
    <el-menu-item index="/cargo2">货架2</el-menu-item>
    <el-menu-item index="/drop">切膜</el-menu-item>
    <el-menu-item index="/heat">加热</el-menu-item>
  </el-menu>
  <RouterView v-slot="{ Component }">
    <KeepAlive>
      <component :is="Component" />
    </KeepAlive>
  </RouterView>
</template>

<script setup lang="ts">

import { RouterView } from 'vue-router'
import { infoConnect } from './service/info';

async function init() {
  await infoConnect();
}

init();

</script>
